/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.jalarbee.core.util;

import com.jalarbee.core.user.business.Profile;

/**
 *
 * @author devel
 */
public class PersonNameFormatter {

    public static String getFullNameWithNoTitle(Profile profile) {
        StringBuffer buffer = new StringBuffer();
        buffer.append(profile.getFirstName());
        if(profile.getMiddleName() != null) {
            buffer.append(profile.getMiddleName());
        }
        buffer.append(profile.getLastName());
        return buffer.toString();
    }
}
